import { createApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
import router from './router'
// 导入Element Plus的全局样式,后面的main可以覆盖它
import 'element-plus/dist/index.css'
import 'normalize.css'
import 'nprogress/nprogress.css'
import './styles/main.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';

const app = createApp(App)
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.component('QuillEditor', QuillEditor)

app.use(router)

app.use(pinia)

app.mount('#app')
